<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsf/composite/components">
<body>
	<ui:composition>
		<p:panel id="panelDetalhar">
			<f:facet name="header">
				<h:outputText value="#{lbls.LBL_0017}" />
			</f:facet>

			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td width="100px;"><h:outputText value="#{lbls.LBL_0005}:"
							styleClass="rotulos" /></td>
					<td><h:outputText value="#{manterPapelUsuarioMB.entidade.id}"
							styleClass="valores">
							<f:convertNumber pattern="000000" />
						</h:outputText></td>
				</tr>
				<tr>
					<td><h:outputLabel for="papelUsuarioNome" value="#{lbls.LBL_0010}:"
							styleClass="rotulos" /></td>
					<td><h:outputText value="#{manterPapelUsuarioMB.entidade.nome}"
							id="papelUsuarioNome" styleClass="valores" /></td>
				</tr>
			</table>

			<c:dadosInclusaoAlteracao entidade="#{manterPapelUsuarioMB.entidade}" />

			<f:facet name="footer">
				<p:commandButton value="#{lbls.LBL_0016}" process="@this"
					update="@form" action="#{manterPapelUsuarioMB.doEditarAction}"
					icon="ui-icon-check" />

				<p:commandButton icon="ui-icon-trash" value="#{lbls.LBL_0013}"
					onclick="confirRemoverDetalhar.show()" />

				<p:commandButton value="#{lbls.LBL_0015}" process="@this"
					icon="ui-icon-cancel" update="@form"
					action="#{manterPapelUsuarioMB.doPesquisarAction}" />
			</f:facet>

			<p:confirmDialog message="#{msgs.MSG_0002}" header="#{msgs.MSG_0003}"
				severity="alert" appendToBody="true"
				widgetVar="confirRemoverDetalhar">

				<p:commandButton value="#{lbls.LBL_0011}" process="@this"
					update="@form" oncomplete="confirRemoverDetalhar.hide()"
					action="#{manterPapelUsuarioMB.doRemoverAction}" />

				<p:commandButton value="#{lbls.LBL_0012}"
					onclick="confirRemoverDetalhar.hide()" type="button" />
			</p:confirmDialog>

		</p:panel>
	</ui:composition>
</body>
</html>

